<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>
<!--v-bind属性绑定--->
<div id="app">
    <div>
        <span v-if="age > 18">欢迎光临</span>
        <span v-else-if="age < 18">18禁</span>
        <span v-else="age == 18">请家长陪同观看</span>   <!-- v-else="age == 18" -->
    </div>
</div>
<script>
    var vue = new Vue({
        el:"#app",
        data:{
            age: 17
        }
    })
</script>
</body>
</html>